package com.fnzx.controller;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.service.additional.query.impl.QueryChainWrapper;
import com.fnzx.entity.ProjectUserRelationEntity;
import com.fnzx.entity.vo.ScoreVo;
import com.fnzx.service.ProjectUserRelationService;
import com.fnzx.util.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * 
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2021-10-23 22:20:00
 */
@RestController
@Api(tags = "项目用户模块")
@RequestMapping("iot/projectuserrelation")
public class ProjectUserRelationController {
    @Autowired
    private ProjectUserRelationService projectUserRelationService;

    @ApiOperation(value = "查询出项目参与人id",notes = "查询出项目参与人")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "projectId",value = "当前页",paramType = "query",required = true,dataType = "String")
    })
    @GetMapping("/listProjectPro")
    public R listProjectUserPro(@RequestParam(value = "projectId") String projectId){
        List<ScoreVo> scoreVoList = projectUserRelationService.info(projectId);
        return R.ok().put("scoreVo",scoreVoList);
    }

}
